package com.loongnoy.mapper;

import com.loongnoy.entity.Point;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

@Mapper
public interface PointMapper {
    @Insert("INSERT INTO t_point(user_id, total, valid, invalid) " +
            "VALUES(#{userId}, #{total}, #{valid}, #{invalid})")
    @Options(useGeneratedKeys = true, keyProperty = "id")
    int insert(Point point);
} 